
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>其他 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    
    <link rel="prev" href="PROXY.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="START.html">
            
                <a href="START.html">
            
                    
                    快速开始
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="MENU.html">
            
                <a href="MENU.html">
            
                    
                    菜单配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="PAGE.html">
            
                <a href="PAGE.html">
            
                    
                    页面开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="ROUTE.html">
            
                <a href="ROUTE.html">
            
                    
                    系统路由
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="AJAX.html">
            
                <a href="AJAX.html">
            
                    
                    Ajax请求
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="MOCK.html">
            
                <a href="MOCK.html">
            
                    
                    Mock模拟数据
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="STYLE.html">
            
                <a href="STYLE.html">
            
                    
                    样式&主题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="LAYOUT.html">
            
                <a href="LAYOUT.html">
            
                    
                    导航布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="MODEL.html">
            
                <a href="MODEL.html">
            
                    
                    Model(Redux)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="I18N.html">
            
                <a href="I18N.html">
            
                    
                    国际化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="PERMISSION.html">
            
                <a href="PERMISSION.html">
            
                    
                    权限控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="NGINX.html">
            
                <a href="NGINX.html">
            
                    
                    Nginx配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="PROXY.html">
            
                <a href="PROXY.html">
            
                    
                    开发代理
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.15" data-path="OTHER.html">
            
                <a href="OTHER.html">
            
                    
                    其他
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >其他</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x5176;&#x4ED6;">&#x5176;&#x4ED6;</h1>
<p>&#x5176;&#x4ED6;&#x7684;&#x4E00;&#x4E9B;&#x8BF4;&#x660E;</p>
<h2 id="&#x9875;&#x9762;&#x6253;&#x5370;">&#x9875;&#x9762;&#x6253;&#x5370;</h2>
<p>&#x901A;&#x8FC7;&#x7ED9;&#x5143;&#x7D20;&#x6DFB;&#x52A0;&#x76F8;&#x5E94;&#x7684;class&#xFF0C;&#x63A7;&#x5236;&#x6253;&#x5370;&#x5185;&#x5BB9;&#xFF1A;</p>
<ul>
<li><code>.just-print</code> &#x53EA;&#x5728;&#x6253;&#x5370;&#x65F6;&#x663E;&#x793A;</li>
<li><code>.no-print</code> &#x5728;&#x6253;&#x5370;&#x65F6;&#x4E0D;&#x663E;&#x793A; </li>
</ul>
<h2 id="&#x7EC4;&#x4EF6;">&#x7EC4;&#x4EF6;</h2>
<p>&#x76EE;&#x5F55;<code>src/library/antd</code>&#x4E2D;&#x57FA;&#x4E8E;Ant Design &#x6269;&#x5C55;&#x4E86;&#x4E00;&#x4E9B;&#x5E38;&#x7528;&#x7EC4;&#x4EF6;</p>
<p>&#x7F16;&#x5199;&#x8FD9;&#x4E9B;&#x7EC4;&#x4EF6;&#x65F6;&#xFF0C;&#x6CE8;&#x610F;&#x4E00;&#x4E0B;&#x51E0;&#x70B9;&#xFF1A;</p>
<ul>
<li>&#x901A;&#x7528;&#x7EC4;&#x4EF6;&#x4E0D;&#x4F7F;&#x7528;css module&#xFF0C;&#x65B9;&#x4FBF;&#x4F7F;&#x7528;&#x8FC7;&#x7A0B;&#x4E2D;&#x7684;&#x6837;&#x5F0F;&#x8986;&#x76D6;;</li>
<li>&#x7EDF;&#x4E00;&#x5404;&#x4E2A;&#x7EC4;&#x4EF6;&#x7684;&#x76EE;&#x5F55;&#x7ED3;&#x6784;&#xFF0C;&#x4FBF;&#x4E8E;&#x6587;&#x6863;&#x3001;demo&#x751F;&#x6210;&#xFF1B;</li>
<li><code>src/pages/example/antd</code>&#x3001;<code>src/menus-ant-design-example.js</code> &#x901A;&#x8FC7;&#x811A;&#x672C; <code>src/library/antd/generator-demos.js</code>&#x751F;&#x6210;;</li>
</ul>
<h2 id="webpack">Webpack</h2>
<h3 id="&#x4F7F;&#x7528;&#x4E86;alias--pathtosrc">&#x4F7F;&#x7528;&#x4E86;alias @: /path/to/src</h3>
<ul>
<li>&#x65B9;&#x4FBF;&#x8DEF;&#x5F84;&#x4E66;&#x5199;&#xFF0C;&#x4E0D;&#x5FC5;&#x5173;&#x5FC3;&#x76F8;&#x5BF9;&#x8DEF;&#x5F84;&#x7ED3;&#x6784;</li>
<li>&#x590D;&#x5236;&#x7C98;&#x8D34;&#x5230;&#x5176;&#x4ED6;&#x6587;&#x4EF6;&#xFF0C;&#x4E0D;&#x5FC5;&#x4FEE;&#x6539;&#x8DEF;&#x5F84;</li>
<li>WebStorm &#x901A;&#x8FC7; &#x914D;&#x7F6E;webpack&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x53EF;&#x4EE5;&#x652F;&#x6301;&#x63D0;&#x793A;&#x548C;&#x70B9;&#x51FB;&#x8DF3;&#x8F6C;&#xFF1A;<pre><code>  WebStorm -&gt; Preference... -&gt; Languages &amp; Frameworks -&gt; JavaScript -&gt; Webpack
</code></pre></li>
</ul>
<h3 id="&#x652F;&#x6301;&#x5224;&#x65AD;&#x8FD0;&#x7B97;&#x7B26;">&#x652F;&#x6301;&#x5224;&#x65AD;&#x8FD0;&#x7B97;&#x7B26;</h3>
<pre><code class="lang-js"><span class="hljs-keyword">const</span> name = res?.data?.user?.name || <span class="hljs-string">&apos;&#x533F;&#x540D;&apos;</span>;
</code></pre>
<h2 id="eslint-&#x8BF4;&#x660E;">ESLint &#x8BF4;&#x660E;</h2>
<p>&#x5982;&#x679C;&#x524D;&#x7AEF;&#x9879;&#x76EE;&#xFF0C;&#x4E0D;&#x662F;git&#x6839;&#x76EE;&#x5F55;&#xFF0C;&#x5728;&#x63D0;&#x4EA4;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x4F1A;&#x62A5;&#x9519; <code>Not a git repository</code></p>
<p>&#x4FEE;&#x6539;package.json&#xFF0C;lint-staged &#x5982;&#x4E0B;&#x5373;&#x53EF;</p>
<pre><code class="lang-json"><span class="hljs-string">&quot;lint-staged&quot;</span>: {
    <span class="hljs-string">&quot;gitDir&quot;</span>: <span class="hljs-string">&quot;../&quot;</span>,
    <span class="hljs-string">&quot;linters&quot;</span>: {
        <span class="hljs-string">&quot;**/*.{js,jsx}&quot;</span>: <span class="hljs-string">&quot;lint-staged:js&quot;</span>,
        <span class="hljs-string">&quot;**/*.less&quot;</span>: <span class="hljs-string">&quot;stylelint --syntax less&quot;</span>
    }
},
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="PROXY.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 开发代理">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"其他","level":"1.15","depth":1,"previous":{"title":"开发代理","level":"1.14","depth":1,"path":"PROXY.md","ref":"PROXY.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"OTHER.md","mtime":"2019-02-16T09:08:05.324Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-02-17T03:27:10.809Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

